package com.kotlin.dongdong.demo.entity

import com.j256.ormlite.field.DataType
import com.j256.ormlite.field.DatabaseField
import com.j256.ormlite.table.DatabaseTable
import com.kotlin.dongdong.framework.ormlite.base.DBBaseEntity

/**
 * Created by dongdong on 2018/1/31.
 */
@DatabaseTable(tableName = "User")
class UserEntity : DBBaseEntity() {

    @DatabaseField(columnName = "_id", dataType = DataType.INTEGER, generatedId = true)
    var id: Int = 0

    @DatabaseField(columnName = "_name")
    var name: String = ""

    @DatabaseField(columnName = "_pwd")
    var pwd: String = ""

    @DatabaseField(columnName = "_role")
    var role: Int = 0


}